package com.banker.web.query;

import java.util.Date;

import org.apache.commons.lang3.StringUtils;

import com.ibeetl.admin.core.annotation.Query;
import com.ibeetl.admin.core.util.Tool;
import com.ibeetl.admin.core.web.query.PageParam;
/**
 *bank查询
 */
public class ToAssignQuery extends PageParam {
	@Query(name = "手机号", display = true)
	private String phone;
	@Query(name = "意向机构代码", display = true)
	private String orgCode;
	@Query(name = "创建时间", display = true,type=Query.TYPE_DATETIME_BETWEEN)
	private String createTime;
	private Date createTimeStart;
	private Date createTimeEnd;
	private Integer assignStatus = 0;
	public String getPhone(){
		return  this.phone;
	}
	public void setPhone(String phone ){
		this.phone = phone;
	}
	public String getOrgCode(){
		return  this.orgCode;
	}
	public void setOrgCode(String orgCode ){
		this.orgCode = orgCode;
	}
	public String getCreateTime(){
		return  this.createTime;
	}
	public void setCreateTime(String createTime ){
		this.createTime = createTime;
		if(StringUtils.isEmpty(createTime)) {
			return ;
		}
		Date[] ds = Tool.parseDataTimeRange(createTime);
		this.createTimeStart=ds[0];
		this.createTimeEnd =ds[1];
	}
	public Date getCreateTimeStart(){
		return  this.createTimeStart;
	}
	public void setCreateTimeStart(Date createTimeStart){
		this.createTimeStart = createTimeStart;
	}
	public Date getCreateTimeEnd(){
		return  this.createTimeEnd;
	}
	public void setCreateTimeEnd(Date createTimeEnd){
		this.createTimeEnd = createTimeEnd;
	}

	public Integer getAssignStatus() {
		return this.assignStatus;
	}

	public void setAssignStatus(Integer assignStatus) {
		this.assignStatus = assignStatus;
	}

}
